use super::CargoErr;


pub mod cargo_motor;
pub mod pick_motor;
pub mod sensor;

pub mod compr;

pub mod scan_uart;


pub fn cargo_pick_motor_run(row_position: i32, col_position: i32) -> Result<(), CargoErr> {
    compr::cy_to_top()?;
    compr::cy_to_extern()?;
    compr::cy_close();

    cargo_motor::run_with_async(row_position)?;
    pick_motor::run(col_position)?;
    cargo_motor::wait_async_finish()?;
    Ok(())
}


